package com.kangfu.db.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDate;
import java.util.List;

/**
 * 用户运动处方配置对象 user_prescription
 * 
 * @author ruoyi
 * @date 2022-10-14
 */
public class UserPrescription
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** user.id */
    private Integer userId;

    /** 第几周的运动处方 */
    private Integer week;

    /** 推荐训练时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate trainTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate trainTimeEnd;

    private Integer type;

    private Integer weekType;

    private Integer pointId;

    private String nickname;

    private String phone;

    private List<UserPrescriptionLesson> lessons;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setWeek(Integer week) 
    {
        this.week = week;
    }

    public Integer getWeek() 
    {
        return week;
    }

    public LocalDate getTrainTime() {
        return trainTime;
    }

    public void setTrainTime(LocalDate trainTime) {
        this.trainTime = trainTime;
    }

    public LocalDate getTrainTimeEnd() {
        return trainTimeEnd;
    }

    public void setTrainTimeEnd(LocalDate trainTimeEnd) {
        this.trainTimeEnd = trainTimeEnd;
    }

    public List<UserPrescriptionLesson> getLessons() {
        return lessons;
    }

    public void setLessons(List<UserPrescriptionLesson> lessons) {
        this.lessons = lessons;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getWeekType() {
        return weekType;
    }

    public void setWeekType(Integer weekType) {
        this.weekType = weekType;
    }

    public Integer getPointId() {
        return pointId;
    }

    public void setPointId(Integer pointId) {
        this.pointId = pointId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("week", getWeek())
            .append("trainTime", getTrainTime())
            .append("nickname", getNickname())
            .append("phone", getPhone())
            .toString();
    }

}
